package com.glls.order.feign;

import com.glls.common.vo.OrderVo;
import com.glls.order.feign.fallback.AccountApiFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(name = "service-account",fallback = AccountApiFallBack.class)
public interface AccountApi {

    @PostMapping("/account/updateAccount")
    public int updateAccount(@RequestBody OrderVo order) ;


    @GetMapping("/account/testAccount")
    public String testAccount() ;
}
